const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode: 'development',
    entry: {
        'app1': './src/app.ts',
    },
    output: {
        clean: true,
        filename: "bundle.[hash:8].js"
    },
    plugins: [
        new HtmlWebpackPlugin(),
    ],
    devtool: 'inline-source-map',
    module: {
        rules: [
            {
                test:/\.ts$/,
                use:'ts-loader',
                exclude: /node_modules/
            }
        ]
    },
    resolve: {
        extensions: ['.ts','.js']
    },
}